package me.shurufa.model;

import java.io.Serializable;
import java.util.List;

/**
 * 作者 : andy
 * 日期 : 16/3/17 17:15
 * 邮箱 : andyxialm@gmail.com
 * 描述 : 新版 书摘Bean
 */
public class NewDigest extends BaseModel implements Serializable {

    /**
     * book_id : 27857
     * comment_num : 0
     * content : “噢，路齐利，一切都不是我们的，而是别人的，……
     * created_at : 2016-01-12 17:52:31
     * creator_id : 175
     * fav_num : 0
     * menu_id : 437147
     * menu_info : {"book_id":"27857","created_at":"2016-01-12 14:36:45","creator_id":"0","id":"437147","order_num":"6","page_end":"0","page_start":"0","title":"第五章谈谈时间，谈谈自己","updated_at":"2016-01-12 14:36:45"}
     * note :
     * notebook_id : 248
     * page_num : 25
     * page_str : 25
     * screenshot :
     * share_num : 0
     * source_creator_id : 0
     * source_creator_name :
     * source_id : 0
     * user_info : {"avatar":"srf/avatar/000/00/01/75.jpg","coin":"0","credits_amount":"20810","credits_available":"20740","dateline":"1450926936","description":"个人简洁","email":"","fromwhere":"web","level":"0","mobile":"13823342633","nickname":"三一先生","sex":"1","uid":"175","updatetime":"1451485535","username":"三一先生","yijuhua":""}
     * zan_num : 0
     *
     * type : 1    // 新增加的
     */

    private String book_id;
    private String comment_num;
    private String content;
    private int type;           // 0: 文本书摘   1: 图片书摘
    private String created_at;
    private String creator_id;
    private String fav_num;
    private String menu_id;
    private String publish_state;
    private List<NewComment> comments;
    /**
     * book_id : 27857
     * created_at : 2016-01-12 14:36:45
     * creator_id : 0
     * id : 437147
     * order_num : 6
     * page_end : 0
     * page_start : 0
     * title : 第五章谈谈时间，谈谈自己
     * updated_at : 2016-01-12 14:36:45
     */

    private MenuInfoEntity menu_info;
    private String note;
    private String notebook_id;
    private String page_num;
    private String page_str;
    private String screenshot;
    private String share_num;
    private String source_creator_id;
    private String source_creator_name;
    private String source_id;
    /**
     * avatar : srf/avatar/000/00/01/75.jpg
     * coin : 0
     * credits_amount : 20810
     * credits_available : 20740
     * dateline : 1450926936
     * description : 个人简洁
     * email :
     * fromwhere : web
     * level : 0
     * mobile : 13823342633
     * nickname : 三一先生
     * sex : 1
     * uid : 175
     * updatetime : 1451485535
     * username : 三一先生
     * yijuhua :
     */
    public CollectInfoEntity collect_info;
    private UserInfoEntity user_info;
    private String zan_num;

    public void setBook_id(String book_id) {
        this.book_id = book_id;
    }

    public void setComment_num(String comment_num) {
        this.comment_num = comment_num;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public void setCreator_id(String creator_id) {
        this.creator_id = creator_id;
    }

    public void setFav_num(String fav_num) {
        this.fav_num = fav_num;
    }

    public void setMenu_id(String menu_id) {
        this.menu_id = menu_id;
    }

    public void setMenu_info(MenuInfoEntity menu_info) {
        this.menu_info = menu_info;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public void setNotebook_id(String notebook_id) {
        this.notebook_id = notebook_id;
    }

    public void setPage_num(String page_num) {
        this.page_num = page_num;
    }

    public void setPage_str(String page_str) {
        this.page_str = page_str;
    }

    public void setScreenshot(String screenshot) {
        this.screenshot = screenshot;
    }

    public void setShare_num(String share_num) {
        this.share_num = share_num;
    }

    public void setSource_creator_id(String source_creator_id) {
        this.source_creator_id = source_creator_id;
    }

    public void setSource_creator_name(String source_creator_name) {
        this.source_creator_name = source_creator_name;
    }

    public void setSource_id(String source_id) {
        this.source_id = source_id;
    }

    public void setUser_info(UserInfoEntity user_info) {
        this.user_info = user_info;
    }

    public void setZan_num(String zan_num) {
        this.zan_num = zan_num;
    }

    public String getBook_id() {
        return book_id;
    }

    public String getComment_num() {
        return comment_num;
    }

    public String getContent() {
        return content;
    }

    public String getCreated_at() {
        return created_at;
    }

    public String getCreator_id() {
        return creator_id;
    }

    public String getFav_num() {
        return fav_num;
    }

    public String getMenu_id() {
        return menu_id;
    }

    public MenuInfoEntity getMenu_info() {
        return menu_info;
    }

    public String getNote() {
        return note;
    }

    public String getNotebook_id() {
        return notebook_id;
    }

    public String getPage_num() {
        return page_num;
    }

    public String getPage_str() {
        return page_str;
    }

    public String getScreenshot() {
        return screenshot;
    }

    public String getShare_num() {
        return share_num;
    }

    public String getSource_creator_id() {
        return source_creator_id;
    }

    public String getSource_creator_name() {
        return source_creator_name;
    }

    public String getSource_id() {
        return source_id;
    }

    public UserInfoEntity getUser_info() {
        return user_info;
    }

    public String getZan_num() {
        return zan_num;
    }

    public List<NewComment> getComments() {
        return comments;
    }

    public void setComments(List<NewComment> comments) {
        this.comments = comments;
    }

    public String getPublish_state() {
        return publish_state;
    }

    public void setPublish_state(String publish_state) {
        this.publish_state = publish_state;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public static class MenuInfoEntity implements Serializable {
        private String book_id;
        private String created_at;
        private String creator_id;
        private String id;
        private String order_num;
        private String page_end;
        private String page_start;
        private String title;
        private String updated_at;

        public void setBook_id(String book_id) {
            this.book_id = book_id;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public void setCreator_id(String creator_id) {
            this.creator_id = creator_id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public void setOrder_num(String order_num) {
            this.order_num = order_num;
        }

        public void setPage_end(String page_end) {
            this.page_end = page_end;
        }

        public void setPage_start(String page_start) {
            this.page_start = page_start;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public void setUpdated_at(String updated_at) {
            this.updated_at = updated_at;
        }

        public String getBook_id() {
            return book_id;
        }

        public String getCreated_at() {
            return created_at;
        }

        public String getCreator_id() {
            return creator_id;
        }

        public String getId() {
            return id;
        }

        public String getOrder_num() {
            return order_num;
        }

        public String getPage_end() {
            return page_end;
        }

        public String getPage_start() {
            return page_start;
        }

        public String getTitle() {
            return title;
        }

        public String getUpdated_at() {
            return updated_at;
        }
    }

    public static class CollectInfoEntity implements Serializable {
        public boolean favorite; // 是否收藏
        public boolean plusone;  // 是否点赞
    }


}
